package itbour.onetouchshow.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by guoh on 2018/3/28.
 * 功能描述：
 * 需要的参数：
 */

public class VideoConditionBean implements Serializable {

    private DurationCondition durationCondition;
    private DurationCondition tmplCondition;
    private DurationCondition industryCondition;

    public DurationCondition getDurationCondition() {
        return durationCondition;
    }

    public void setDurationCondition(DurationCondition durationCondition) {
        this.durationCondition = durationCondition;
    }

    public DurationCondition getTmplCondition() {
        return tmplCondition;
    }

    public void setTmplCondition(DurationCondition tmplCondition) {
        this.tmplCondition = tmplCondition;
    }

    public DurationCondition getIndustryCondition() {
        return industryCondition;
    }

    public void setIndustryCondition(DurationCondition industryCondition) {
        this.industryCondition = industryCondition;
    }

    @Override
    public String toString() {
        return "VideoConditionBean{" +
                "durationCondition=" + durationCondition +
                ", tmplCondition=" + tmplCondition +
                ", industryCondition=" + industryCondition +
                '}';
    }

    public static class Option implements Serializable {
        private boolean isSelected;
        private long id;
        private String name;
        private ArrayList<Integer> values;

        public Option(String name, ArrayList<Integer> values) {
            this.name = name;
            this.values = values;
        }

        public long getId() {
            return id;
        }

        public void setId(long id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public ArrayList<Integer> getValues() {
            return values;
        }

        public void setValues(ArrayList<Integer> values) {
            this.values = values;
        }

        public boolean isSelected() {
            return isSelected;
        }

        public void setSelected(boolean selected) {
            isSelected = selected;
        }

        @Override
        public String toString() {
            return "Option{" +
                    "isSelected=" + isSelected +
                    ", id=" + id +
                    ", name='" + name + '\'' +
                    ", values=" + values +
                    '}';
        }
    }

    public class DurationCondition implements Serializable {
        private long id;
        private String name;
        private String requestKey;
        private List<Option> options;

        public long getId() {
            return id;
        }

        public void setId(long id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getRequestKey() {
            return requestKey;
        }

        public void setRequestKey(String requestKey) {
            this.requestKey = requestKey;
        }

        public List<Option> getOptions() {
            return options;
        }

        public void setOptions(List<Option> options) {
            this.options = options;
        }

        @Override
        public String toString() {
            return "DurationCondition{" +
                    "id=" + id +
                    ", name='" + name + '\'' +
                    ", requestKey='" + requestKey + '\'' +
                    ", options=" + options +
                    '}';
        }
    }
}
